import request from '@/utils/request'

const api = '/admin/activity'

export default {
  getActivityPageList (parameter, queryParam) {
    return request({
      url: `${api}/rechargeActivity/${parameter.pageNo}/${parameter.pageSize}`,
      method: 'post',
      data: queryParam
    })
  },
  showRechargeActivity (id) {
    return request({
      url: `${api}/rechargeActivity/show/${id}`,
      method: 'get'
    })
  },
  addRechargeActivity (rechargeActivity) {
    return request({
      url: `${api}/rechargeActivity/add`,
      method: 'post',
      data: rechargeActivity
    })
  },
  editRechargeActivity (rechargeActivity) {
    return request({
      url: `${api}/rechargeActivity/update`,
      method: `post`,
      data: rechargeActivity
    })
  },
  removeRechargeActivity (id) {
    return request({
      url: `${api}/rechargeActivity/${id}`,
      method: 'delete'
    })
  }

}
